﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Utilities
{
    public class Logger
    {
        public static void Write(string errorMessage)
        {
            string path = Directory.GetCurrentDirectory().ToString() + @"\logger.txt";
            FileHelper helper = new FileHelper(path);
            helper.AppendLine(errorMessage);
        }
        public static void Write(Exception ex)
        {
            Logger.Write(ex.Message);
        }
    }
}
